package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YonbipCorrespondingAuxiliaryMapper;
import com.ruoyi.system.domain.YonbipCorrespondingAuxiliary;
import com.ruoyi.system.service.IYonbipCorrespondingAuxiliaryService;
import com.ruoyi.common.core.text.Convert;

/**
 * 辅助项对应Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-15
 */
@Service
public class YonbipCorrespondingAuxiliaryServiceImpl implements IYonbipCorrespondingAuxiliaryService 
{
    @Autowired
    private YonbipCorrespondingAuxiliaryMapper yonbipCorrespondingAuxiliaryMapper;

    /**
     * 查询辅助项对应
     * 
     * @param id 辅助项对应主键
     * @return 辅助项对应
     */
    @Override
    public YonbipCorrespondingAuxiliary selectYonbipCorrespondingAuxiliaryById(Long id)
    {
        return yonbipCorrespondingAuxiliaryMapper.selectYonbipCorrespondingAuxiliaryById(id);
    }

    @Override
    public YonbipCorrespondingAuxiliary selectYonbipCorrespondingAuxiliaryByAccountCodeOldCode(YonbipCorrespondingAuxiliary yonbipCorrespondingAuxiliary)
    {
        return yonbipCorrespondingAuxiliaryMapper.selectYonbipCorrespondingAuxiliaryByAccountCodeOldCode(yonbipCorrespondingAuxiliary);
    }

    /**
     * 查询辅助项对应列表
     * 
     * @param yonbipCorrespondingAuxiliary 辅助项对应
     * @return 辅助项对应
     */
    @Override
    public List<YonbipCorrespondingAuxiliary> selectYonbipCorrespondingAuxiliaryList(YonbipCorrespondingAuxiliary yonbipCorrespondingAuxiliary)
    {
        return yonbipCorrespondingAuxiliaryMapper.selectYonbipCorrespondingAuxiliaryList(yonbipCorrespondingAuxiliary);
    }

    /**
     * 新增辅助项对应
     * 
     * @param yonbipCorrespondingAuxiliary 辅助项对应
     * @return 结果
     */
    @Override
    public int insertYonbipCorrespondingAuxiliary(YonbipCorrespondingAuxiliary yonbipCorrespondingAuxiliary)
    {
        return yonbipCorrespondingAuxiliaryMapper.insertYonbipCorrespondingAuxiliary(yonbipCorrespondingAuxiliary);
    }

    /**
     * 修改辅助项对应
     * 
     * @param yonbipCorrespondingAuxiliary 辅助项对应
     * @return 结果
     */
    @Override
    public int updateYonbipCorrespondingAuxiliary(YonbipCorrespondingAuxiliary yonbipCorrespondingAuxiliary)
    {
        return yonbipCorrespondingAuxiliaryMapper.updateYonbipCorrespondingAuxiliary(yonbipCorrespondingAuxiliary);
    }

    /**
     * 批量删除辅助项对应
     * 
     * @param ids 需要删除的辅助项对应主键
     * @return 结果
     */
    @Override
    public int deleteYonbipCorrespondingAuxiliaryByIds(String ids)
    {
        return yonbipCorrespondingAuxiliaryMapper.deleteYonbipCorrespondingAuxiliaryByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除辅助项对应信息
     * 
     * @param id 辅助项对应主键
     * @return 结果
     */
    @Override
    public int deleteYonbipCorrespondingAuxiliaryById(Long id)
    {
        return yonbipCorrespondingAuxiliaryMapper.deleteYonbipCorrespondingAuxiliaryById(id);
    }
}
